<?php
if ($this->allModels != null) { //сюда из fetchAll
    $HTMLstr .= '<div class="body">';
    foreach($this->allModels as $oneModel) {
        $HTMLstr .= '<div class="fetchallOne" id="user">
            <div class="fetchallOneInsideAvatar">
            <img height="100%" src="stuff/images/saved/'. model_ConfigMapper::findAvatar($oneModel->getAvatar()) .'.jpg">
            </div>
            <div class="fetchallOneInsideTitle">
            '. $oneModel->getName() .'
        <b>' . $oneModel->getUsername() . '</b>
            '. $oneModel->getSurname() .'
                </div>
                <div class="fetchallOneInsideAct">
                <a href="index.php?controller=user&action=index&id='.$oneModel->getId().'">смотреть</a>
                </div>
                </div>';
    }

    if (!empty($this->paginator)) {
        $HTMLstr .= '<div class="paginator">'. $this->paginator .'</div>';
    }


} else { //сюда если база пустая
    $HTMLstr .= '<div class="fetchallOne" id="tag">
        <div class="fetchallOneInsideText">
        База юзеров ещё совсем пуста!
        </div>
        <div>';
}
$HTMLstr .= '</div>';